package
{
	import com.bit101.components.TextArea;

	public class Log
	{
		private static var _infoPanel:TextArea;
		public function Log()
		{
		}
		
		public static function init(panel:TextArea):void
		{
			_infoPanel=panel;
		}
		
		public static function info(info:String):void{
			_infoPanel.text="[INFO] "+info+"\n";
		}
		public static function error(info:String):void
		{
			_infoPanel.text="[ERROR] "+info+"\n";
		}
	}
}